package net.zigin.epi.demo.data;

import net.zigin.epi.demo.vo.SysUserVo;
import org.testng.annotations.DataProvider;

/**
 * service层测试数据
 *
 * @author mgw1986
 * @version V1.0
 * @date 2018/12/4 11:53
 */
public class SysUserServiceDataProvider {

    private String id = "11ec04ceaa634a7cdfcb84e7ee039986";

    @DataProvider(name = "getSysUserList")
    public Object[][] getSysUserList() {
        return new Object[][]{
                {"11ea8613b99d00ff041064217e471706", "0", 1, 10},
                {"11ea8613b99d00ff041064217e471706", "2", 1, 10},
        };
    }


    @DataProvider(name = "getSysUserInfoById")
    public Object[][] getSysUserInfoById() {
        return new Object[][]{
                {id},
                {null}
        };
    }

    @DataProvider(name = "saveSysUser")
    public Object[][] saveSysUser() {
        return new Object[][]{
                {
                        SysUserVo.builder()
                                .id(id)
                                .userName("测试1")
                                .password("111111")
                                .email("1@12.com")
                                .wxId("")
                                .deptId("11ea8613b99d00ff041064217e471706")
                                .mobileNo("13200000000")
                                .build()
                }
        };
    }

    @DataProvider(name = "deleteSysUserById")
    public Object[][] deleteSysUserById() {
        return new Object[][]{
                {id}
        };
    }
}
